package com.znufe.exam.viewmodel.admin.course;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author gong
 */
@Data
@ApiModel(value = "课程创建类",description = "需要以下字段创建课程")
public class CourseCreateVm {

    private Integer id;

    @ApiModelProperty(value = "项目类别",name = "courseProject",example = "5")
    private Integer courseProject;

    @ApiModelProperty(value = "项目类别标识，置为1",name = "courseProjectCategory",example = "1")
    private Integer courseProjectCategory;

    @NotBlank
    @ApiModelProperty(value = "课程名称",name = "courseName",example = "安全培训")
    private String courseName;

    @NotNull
    @ApiModelProperty(value = "课程级别",name = "courseType",example = "1")
    private Integer courseType;

    @NotNull
    @ApiModelProperty(value = "课程级别标识，置为0",name = "courseTypeCategory",example = "0")
    private Integer courseTypeCategory;

    @ApiModelProperty(value = "课程概述",name = "introduction",example = "这是一门安全培训课程")
    private String introduction;

    @ApiModelProperty(value = "课程副标题",name = "subtitle",example = "安全培训进企业系列课程")
    private String subtitle;

    @NotBlank
    @ApiModelProperty(value = "课程封面地址",name = "coverPath",example = "/upload/video/a0147e1c-59ef-47ad-ae8d-79c05404bb64.jpg")
    private String coverPath;

    @ApiModelProperty(value = "课程添加的视频列表",name = "subCourseList",example = "[1,2,3]")
    private List<Integer> subCourseList;
}
